﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.Framework.Common.TableInfo
{
    /// <summary>
    /// 会员订单
    /// </summary>
    public class DBCustomOrder : DBBaseInfo
    {
        /// <summary>
        /// 表名称
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "CUSTOMORDER";
        }
        /// <summary>
        /// 订单ID
        /// </summary>
        public int CORDERID { get; set; }
        /// <summary>
        /// 订单类型 C0C卡类 C0P 产品类 CCP 卡类和产品都有 C0R 储值卡
        /// </summary>
	    public string CORDERTYPE { get; set; }
        /// <summary>
        /// 订单系统时间
        /// </summary>
	    public DateTime CORDERDATE { get; set; }
        /// <summary>
        /// 卡项目ID
        /// </summary>
	    public int CARDITEMID { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
	    public int PRODUCTID { get; set; }
        /// <summary>
        /// 是否支付完毕 CPO 支付完成 CPU 未完成
        /// </summary>
	    public string CPAYOVER { get; set; }
        /// <summary>
        /// 支付总额
        /// </summary>
	    public decimal CPAYMONEY { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
	    public decimal CPAYSALEMONEY { get; set; }
        /// <summary>
        /// 优惠次数
        /// </summary>
	    public int CPAYSALECOUNT { get; set; }
        /// <summary>
        /// 如果未完成那么此处填写未支付余额，每支付一次程序将余额自动更新
        /// </summary>
	    public decimal CPAYBALANCE { get; set; }
        /// <summary>
        /// 最后支付完成时间
        /// </summary>
	    public DateTime CPAYENDDATE { get; set; }
        /// <summary>
        /// 开卡员工
        /// </summary>
	    public int EMPLOYEEID { get; set; }
        /// <summary>
        /// 会员ID
        /// </summary>
	    public int CUSTOMID { get; set; }
        /// <summary>
        /// 储值卡ID
        /// </summary>
        public int REGCARDID { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 订单ID
            /// </summary>
            public const string CORDERID = "CORDERID";
            /// <summary>
            /// 订单类型 C0C卡类 C0P 产品类 CCP 卡类和产品都有 C0R 储值卡
            /// </summary>
            public const string CORDERTYPE = "CORDERTYPE";
            /// <summary>
            /// 订单系统时间
            /// </summary>
            public const string CORDERDATE = "CORDERDATE";
            /// <summary>
            /// 卡项目ID
            /// </summary>
            public const string CARDITEMID = "CARDITEMID";
            /// <summary>
            /// 产品ID
            /// </summary>
            public  const string PRODUCTID = "PRODUCTID";
            /// <summary>
            /// 是否支付完毕 CPO 支付完成 CPU 未完成
            /// </summary>
            public  const string CPAYOVER = "CPAYOVER";
            /// <summary>
            /// 支付总额
            /// </summary>
            public  const string CPAYMONEY = "CPAYMONEY";
            /// <summary>
            /// 优惠金额
            /// </summary>
            public  const string CPAYSALEMONEY = "CPAYSALEMONEY";
            /// <summary>
            /// 优惠次数
            /// </summary>
            public  const string CPAYSALECOUNT = "CPAYSALECOUNT";
            /// <summary>
            /// 如果未完成那么此处填写未支付余额，每支付一次程序将余额自动更新
            /// </summary>
            public  const string CPAYBALANCE = "CPAYBALANCE";
            /// <summary>
            /// 最后支付完成时间
            /// </summary>
            public  const string CPAYENDDATE = "CPAYENDDATE";
            /// <summary>
            /// 开卡员工
            /// </summary>
            public  const string EMPLOYEEID = "EMPLOYEEID";
            /// <summary>
            /// 会员ID
            /// </summary>
            public  const string CUSTOMID = "CUSTOMID";
            /// <summary>
            /// 储值卡ID
            /// </summary>
            public const string REGCARDID = "REGCARDID";
        }
        /// <summary>
        /// 订单类型 C0C卡类 C0P 产品类 CCP 卡类和产品都有 C0R 储值卡
        /// </summary>
        public static class ENUM_CORDERTYPE
        {
            /// <summary>
            /// C0C卡类
            /// </summary>
            public const string COC = "C0C";
            /// <summary>
            ///  C0P 产品类
            /// </summary>
            public const string COP =  "C0P";
            /// <summary>
            ///  CCP 卡类和产品都有
            /// </summary>
            public const string CCP = "CCP";
            /// <summary>
            /// C0R 储值卡
            /// </summary>
            public const string COR = "COR";

        }
        /// <summary>
        /// 是否支付完毕 CPO 支付完成 CPU 未完成
        /// </summary>
        public static class ENUM_CPAYOVER
        {
            /// <summary>
            /// CPO 支付完成
            /// </summary>
            public const string CPO = "CPO";
            /// <summary>
            /// CPU 未完成
            /// </summary>
            public const string CPU = "CPU";
        }
    }
}
